<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>供应商平台</title>
</head>
<body class="tob-wrap">
	<div th:replace="common/top"></div>
	
	<article class="container container-a1-register clearfix">
		<section class="content">
			<div class="form-register">
				<nav>
					<a id="personal" class="active" href="#"><span >个人账户</span></a><a
						id="enterprise" href="#"><span >企业账户</span></a>
				</nav>
				<div class="forms">
					<form id="form_personal" action="#" method="post" >
						
						<div style="color: red; text-align: center;">  
						</div>			    
						<p>
							<label for=""><strong>*</strong>用户昵称 : </label> 
							<span class="span-label" th:text="${currentUser.realName}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>用户角色 : </label> 
							<span class="span-label" th:text="${currentUser.roleIds}"></span>
						</p>
						<p>
							<label for="">
							<strong>*</strong>所属企业 : </label>
							<span class="span-label" th:text="${currentUser.tCompany.companyName}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>手机号码 : </label> 
							<span class="span-label"  th:text="${currentUser.mobilePhone}"></span>
						</p>
						
						<p>
                        <label for="">所属语言 : </label>
                        <select class="select" name="" id="">
                            <option value="">中文(简体)</option>
                            <option value="">English</option>
                        </select>
                    </p>
						
						
						<p class="btn-bar">
							<label for=""></label> <span>
								<!--<button class="btn btn-cyan" type="submit">修改资料信息</button>-->
								<a class="btn btn-cyan" th:href = "@{'/supplier/changeToEdit.htm'}">修改资料信息</a>
							</span>
						</p>
					</form>

					<form style="display: none" id="form_enterprise" name="form_enterprise" action="#"  method="post">
						 <div th:if="${vendor.status == 1}" class="info-tip" ><i></i><span>审核中...</span></div>
                    	 <div th:if="${vendor.status == 5}" class="info-tip info-tip-fail"><i></i><span>审核不通过</span></div>
                         <div th:if="${vendor.status == 2} or ${vendor.status == 3}" class="info-tip info-tip-success"><i></i><span>已通过</span></div>
						 <div th:if="${vendor.status == 4}" class="info-tip info-tip-black" style="background-color:#636363"><i></i><span>黑名单</span></div>
						<p>
							<label for=""><strong>*</strong>企业名称 : </label> 
							 <span class="span-label" th:text="${currentUser.tCompany.companyName}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>营业执照号码 : </label>  
							<span class="span-label" th:text="${currentUser.tCompany.businessId}"></span>
						</p>
						<div class="div-box clearfix">
							 <label class="label-title" for=""><strong>*</strong>企业所在地 : </label>
                        <div class="div-box-right">
                            <p>
                                <span class="span-label"  th:text="${currentUser.tCompany.tProvince.provinceName}">新疆维吾尔族自治区</span>
                                <span class="c-blue">省</span>
                                <span class="span-label"  th:text="${currentUser.tCompany.tCity.cityName}">乌鲁木齐</span>
                                <span class="c-blue">市</span>
                            </p>
                            <p>
                                <span class="span-label"  th:text="${currentUser.tCompany.address}">中央北大街128号帝国大厦129层305室</span>
                            </p>
							</div>
						</div>
						<p>
							<label for=""><strong>*</strong>固定电话 : </label> 
							<span class="span-label" th:text="${currentUser.tCompany.registeredPhone}">百度在线网络技术（北京）有限公司</span>
						</p>
						<div class="div-box clearfix">
							<label class="label-title" for=""><strong>*</strong>公司主营业务
								: </label>
							<div class="div-box-right">
								 <p>
                                <label  class="label-edit" for=""><input  th:text="${currentUser.tCompany.mainBusiness}"  type="checkbox" checked="checked"/></label>
                            </p>
							</div>
						</div>
						<p>
							<label for=""><strong>*</strong>企业类型 : </label> 
							  <span class="span-label" th:text="${currentUser.tCompany.tOrganizationType.typeName}"></span>
						</p>
						<p>
							<label for="">注册资金 : </label> 
							 <span class="span-label" th:text="${currentUser.tCompany.registeredCapital}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>组织机构代码 : </label> 
							 <span class="span-label" th:text="${currentUser.tCompany.organizationCode}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>税务登记号 : </label> 
							 <span class="span-label" th:text="${currentUser.tCompany.taxNo}"></span>
						</p>
						<div class="div-box clearfix">
							<label class="label-title" for=""><strong>*</strong>是否一般纳税人
								: </label>
							<div class="div-box-right">
								<p>
									 <span class="span-label" th:if="${currentUser.tCompany.isGeneralTaspayer==0}">不是</span>
									  <span class="span-label" th:if="${currentUser.tCompany.isGeneralTaspayer==1}">是</span>
								</p>
							</div>
						</div>
						<p>
							<label for=""><strong>*</strong>企业营业执照 : </label> 
							<span class="span-label"><img src="../images/temp/pic_85x54_01.jpg" alt=""/></span>
						</p>
						<p>
							<label for=""><strong>*</strong>机构组织代码证 : </label> 
							<span class="span-label"><img src="../images/temp/pic_85x54_01.jpg" alt=""/></span>
						</p>
						<p>
							<label for=""><strong>*</strong>税务登记证 : </label> 
							<span class="span-label"><img src="../images/temp/pic_85x54_01.jpg" alt="" /></span>
						</p>
						<p>
							<label for=""><strong>*</strong>开户行名称 : </label> 
							<span class="span-label" th:text="${currentUser.tCompany.bankName}"></span>
						</p>
						<p>
							<label for=""><strong>*</strong>开户行账号 : </label> 
							 <span class="span-label" th:text="${currentUser.tCompany.bankAccount}"></span>
						</p>
						
						 <p>
                        <label for="">所属语言 : </label>
                        <select class="select" name="" id="">
                            <option value="">中文(简体)</option>
                            <option value="">English</option>
                        </select>
                   		 </p>
						
						<p class="btn-bar">
							<label for=""></label> <span>
								<a class="btn btn-cyan" th:href = "@{'/supplier/changeToEdit.htm'}">修改资料信息</a>
							</span>
						</p>
						<!--<p class="btn-bar">
							<label for=""></label> <span>
                            <button class="btn btn-cyan" type="submit">修改并返回上一级</button>
                        </span>
						</p>-->
						
					</form>
				</div>
			</div>
		</section>
	</article>
</body>
<script>
	//<![CDATA[
          function changProvince(obj){
        	    var provinceId = obj.options[obj.selectedIndex].value;
        	   /*  alert("The option you select is:"+opt.text+"("+opt.value+")"); */
					debugger;
           	    $.ajax({
       		        type:"GET",
       		        contentType: 'application/json', 
       		        url:"/api/" + provinceId + "/city",        
       		        success: function(response){	
       		        	debugger;
       		        	var html = '';
       		        	$.each(response, function(i, item) {
       		        		html = html + '<option value="' + item.id + '">' + item.cityName + '</option>';
       		    	 	})
       		    	 	$("#tcity").html(html);
       		        }
       	    	});
          }
		//]]>
</script>           
<script data-main="../js/page/a1_register" src="../lib/requirejs/require.js"></script>
</html>